
package com.benimetum.items;

/**
 *
 * @author Ethem Cem Ozkan
 * @email ethemcem.ozkan@gmail.com
 * No 07110604
 */
public class Community
{
    private String id;
    private String name;
    private Person[] members; //hem student hem teacher alabilir
    private Person admin;
   
    
    public Community(String id, String name, Person[] members, Person admin) {
	  this.id = id;
	  this.name = name;
	  this.members = members;
	  this.admin = admin;
    }

   

    
    public Person getAdmin() {
	  return admin;
    }

    public String getId() {
	  return id;
    }

    public Person[] getMembers() {
	  return members;
    }

    public String getName() {
	  return name;
    }

    public void setAdmin(Person admin) {
	  this.admin = admin;
    }

    public void setId(String id) {
	  this.id = id;
    }

    public void setMembers(Person[] members) {
	  this.members = members;
    }

    public void setName(String name) {
	  this.name = name;
    }
    
    public boolean userType(){
        return admin.isTeacher();
    }
    
}
